import { createApp } from 'vue'
// 样式初始化
import '@/assets/style.less';
import 'element-plus/es/components/message/style/css';
import 'element-plus/es/components/message-box/style/css';
import App from './App.vue'
// 导入 初始化路由的方法  initRouter
import { initRouter } from './router/index'
// 导入 初始化pinia的方法 initPinia
import { initPinia } from './store/index';


// 全局注册 所有 element plus 的icon图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App);


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


// 初始化(注册)路由
initRouter(app);
// 初始化(注册)pinia
initPinia(app);


app.mount('#app');





// createApp(App).mount('#app')
